﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.Net;
using System.Globalization;
using System.Threading;
using NUnit.Framework;

namespace ReverseGeocoding.Library
{
    [TestFixture]
    public class ReverseGeocodingTest
    {
        //[TestFixtureSetUp]
        //public void Setup()
        //{
        //    CultureInfo culture = new CultureInfo("en-US");
        //    Thread.CurrentThread.CurrentCulture = culture;
        //    Thread.CurrentThread.CurrentUICulture = culture;
        //}


        [Test]
        public void ReverseGeocoding1_Test()
        {
            double latitude = -33.06251;
            double longitude = -68.45244;

            ReverseGeocodingLibrary testObject = ReverseGeocodingLibrary.Instance();

            Assert.False(String.IsNullOrEmpty(testObject.ReverseGeocode(latitude, longitude)));
        }

        [Test]
        public void ReverseGeocoding2_Test()
        {
            double latitude = -2.06251123124;
            double longitude = -6.45244343436;

            ReverseGeocodingLibrary testObject = ReverseGeocodingLibrary.Instance();

            Assert.False(String.IsNullOrEmpty(testObject.ReverseGeocode(latitude, longitude)));
        }

        [Test]
        public void ReverseGeocoding3_Test()
        {
            double latitude = -2.06;
            double longitude = -6.45;

            ReverseGeocodingLibrary testObject = ReverseGeocodingLibrary.Instance();

            Assert.False(String.IsNullOrEmpty(testObject.ReverseGeocode(latitude, longitude)));
        }
      
      
    }
}
